package cn.huiyunche.base.service.form;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * Created by LYN on 9/11/16.
 */
public class SOrderComplainForm {

    @NotNull(message = "订单id 不能为空")
    private Long orderId;

    @NotBlank(message = "投诉主题不能为空！")
    @Length(min = 3, max = 50, message = "投诉主题 3 到 50个字!")
    private String title;

    @NotBlank(message = "投诉内容不能为空！")
    @Length(min = 5, max = 200, message = "投诉内容 5 到 200个字!")
    private String content;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
